package com.gcxy.dto.Fence;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @auther:韦林鹏 `*@since:2023/12/21 21 12
 * @description:
 */
@Data
public class InsertDto {
    @NotEmpty(message = "围栏名称不为空")
    @Length(max = 20,message = "围栏名称最长为20")
    private String fenceName;
    @NotNull(message = "圈舍不为空")
    private Integer penId;
    @NotNull(message = "牧场不为空")
    private Integer ranchId;

}
